﻿//**********************************************************
//Copyright(C)2010 By 波特商网公司 版权所有。
//
//文件名：
//文件功能：我的帐号按钮子菜单
//
//创建标识：齐李平 || 2011-03-24
//
//修改标识：
//修改描述：
//**********************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hmc.IM.Common.Plugin;


namespace Hmc.IM.Client.Core
{
    /// <summary>
    /// 我的帐号按钮子菜单
    /// </summary>
    public class MyAccountMenus
    {
       
        /// <summary>
        /// Form加载器
        /// </summary>
        public static ILoadForm FormLoader
        {
            get;
            set;
        }

        /// <summary>
        /// 子菜单
        /// </summary>
        public static List<PluginChildMenuEntity> Menus
        {
            get 
            {
                List<PluginChildMenuEntity> _ChildMenuList = new List<PluginChildMenuEntity>();

                _ChildMenuList.Add(new PluginChildMenuEntity
                {
                    MenuName = "基本资料",
                    MenuIndex = 0,
                    ClickEvent = (sender, e) =>
                    {
                        MyAccoutForm frm = new MyAccoutForm();
                        FormLoader.LoadContentForm(sender, frm);
                    }
                });
                _ChildMenuList.Add(new PluginChildMenuEntity
                {
                    MenuName = "密码修改",
                    MenuIndex = 0,
                    ClickEvent = (sender, e) =>
                    {
                        //MyAccoutPasswordForm frm = new MyAccoutPasswordForm();
                        //FormLoader.LoadContentForm(sender, frm);
                    }
                });

                _ChildMenuList.Add(new PluginChildMenuEntity
                {
                    MenuName = "我的日志",
                    MenuIndex = 0,
                    ClickEvent = (sender, e) =>
                    {
                        MyLogsForm frm = new MyLogsForm();
                        FormLoader.LoadContentForm(sender, frm);
                    }
                });
                return _ChildMenuList;
                //Dictionary<string, EventHandler> menus = new Dictionary<string, EventHandler>();
                //menus.Add("基本信息", (sender, e) =>
                //{
                //    MyAccoutForm form = new MyAccoutForm();
                //    FormLoader.LoadContentForm(sender, form);
                //});
                //menus.Add("密码修改", (sender, e) =>
                //{
                //    MyAccoutPasswordForm form = new MyAccoutPasswordForm();
                //    FormLoader.LoadContentForm(sender, form);
                //});
                //menus.Add("我的日志", (sender, e) =>
                //{
                //    MyLogsForm form = new MyLogsForm();
                //    FormLoader.LoadContentForm(sender, form);
                //});
                
                //return menus;
            }
        }
    }
}
